The setOrderId method sets the orderId for the order. OrderIds are typically used by the trading broker.
setOrderId(orderId);
orderId
String value identifying an orderId.
OrderIds are needed whenever the trading system places order modify or cancel so that the order could be identified by the trading broker.
See placeOrderModify() in Account class for an example on how to use setOrderId() method.
Copyright © 2006-2009 ActiveTick LLC